package com.example.database.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.database.entity.MyGame;
import com.example.database.mapper.MyGameMapper;
import com.example.database.service.MyGameBizService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 我的游戏 服务实现类
 * </p>
 *
 * @author Nagiumi
 * @since 2023-05-12
 */
@Service
public class MyGameBizServiceImpl extends ServiceImpl<MyGameMapper, MyGame> implements MyGameBizService {

    /**
     *  自定义方法
     * @param company
     * @return
     */
    @Override
    public List<MyGame> selectMyGameByCompany(String company) {
        QueryWrapper<MyGame> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("game_company", company);
        return list(queryWrapper);
    }
}
